How can I stop the whole code inside a thread

welcome to shbcf.ru